from selenium import  webdriver
import time
from selenium.webdriver.common.by import By


driver = webdriver.Chrome(r'D:\bianchengerbianchenger\driver\chromedriver.exe')
driver.get('https://user.qzone.qq.com/2674184615/infocenter')
driver.maximize_window()
#------------------------------------------------登录------------------------------
f = driver.find_element(By.ID,'login_frame')
driver.switch_to.frame(f)       #切入框架
driver.find_element(By.CSS_SELECTOR,'span[id^="nick_2674184615"]').click()
driver.switch_to.default_content()      #切出框架
time.sleep(2)
#点击说说
driver.find_element(By.LINK_TEXT,'说说').click()
#111111111111111111
time.sleep(2)

ff = driver.find_element(By.CLASS_NAME,'app_canvas_frame')
driver.switch_to.frame(ff)  # 切入框架

driver.find_element(By.ID,'$1_substitutor_content').click()
time.sleep(1)
driver.find_element(By.ID,'$1_content_content').send_keys('111')
time.sleep(1)
driver.find_element(By.LINK_TEXT,'发表').click()
